﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations.Schema;

namespace DuToanT2.Models.Mapping
{
    public class CalculationUnitMap : EntityTypeConfiguration<CalculationUnit>
    {
        public CalculationUnitMap()
        { 
            // key
            HasKey(t => t.ID);

            // properties
            Property(t => t.ID);
            Property(t => t.Name);

            // table
            ToTable("CalculationUnit");
        }
    }
}
